package rentals;

public class Dvd {

	// Properties.
	private String title;
	private String producer;
	private boolean available;
	
	// Constructor take title and producers String and sets them.
	public Dvd(String title, String producer) {
		this.title = title;
		this.producer = producer;
		available = true;
	}
	
	// Accessors to onLoan property
	public void setAvailable(boolean onLoan) {
		this.available = onLoan;
	}
	public boolean getAvailable() {
		return available;
	}

	public String toString() {
		String dvd = title + " produced by " + producer + "."; 
		return dvd;
	}
	
	public void printDvd() {
		System.out.println(toString());
	}
}
